package com.mailanalyzer.utils;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ConfigUtil {

	private Properties properties = null;
	private static ConfigUtil instance = new ConfigUtil();
	
	
	public static synchronized ConfigUtil getInstance(){
		return instance;
	}

	
	private ConfigUtil(){
		super();
		this.properties = new Properties();
		try {
			
		    properties.load(new FileInputStream(System.getProperty("user.dir") + "\\local.properties"));
		} 
		catch (IOException e) {
			e.printStackTrace();
		}
		
	};
	
	public String getProperty(String key){
		return this.properties.getProperty(key);
	}
	
	
	
	
	
	
	
}
